/**
 * Created by Administrator on 2017/7/5.
 */
//获取id
(function(angular){
    var app = angular.module('detaileAPP',[]);
    app.controller('detaileCtrl',function($scope,$http,$location){
        var id=$location.$$absUrl.split('=')[1];
        console.log(id);
        $scope.url = 'http://139.199.192.48:9090/api/getmoneyctrlproduct?productid='+id;
        $http({
            method:'get',
            url:$scope.url
        })
            .then(function(data){

                $scope.data = data.data.result[0];
                console.log($scope.data);
            },function(error){
                console.log(error);
            })
    });

    app.filter('trustHtml', function ($sce) {
        return function (input) {
            return $sce.trustAsHtml(input);
        }
    });
})(angular)